package com.fjn.spring.src;

import com.fjn.spring.dao.UserDao;
import com.fjn.spring.dao.UserDaoImpt;

public class UserService {
    //生成UserDao属性，生成set方法
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void add(){
        System.out.println("Service........");
        userDao.add();
    }
}
